from time import time
from rest_framework import serializers

from activities.models import Activities


class ActivitiesListSerializer(serializers.ModelSerializer):
    class Meta:
        model = Activities
        fields = ('id', 'title', 'image', 'start_time', 'city', 'apply_state')


class ActivitiesDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = Activities
        fields = ('id', 'title', 'image', 'start_time', 'address', 'end_time', 'apply_state', "sponsor", "intro", "desc", "related_links", "apply_deadline")